package cn.tedu.spring.homework.eg22;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.applet.AppletContext;

/**
 * @author Justin Parker
 * @author 2024/8/2 下午10:47
 * @version 1.0
 */
public class TestMapper {
    public static void main(String[] args) {

        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.homework.eg22");

        CommentMapper commentMapper1 = context.getBean(CommentMapper.class);
        System.out.println(commentMapper1);

        CommentMapper commentMapper2 = context.getBean(CommentMapper.class);
        System.out.println(commentMapper2);

    }
}
